package com.weiiew.versionservice.controller;

import com.weiiew.common.entity.dto.version;
import com.weiiew.common.OnlyFeign.OnlyFeign;
import com.weiiew.versionservice.service.VersionServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description
 * @Author 魏锴
 * @Date 2025/4/3
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/version/feign")
public class VersionFeignController {
    private final VersionServiceImpl versionService;
    @OnlyFeign
    @GetMapping("/list")
    public List<version> versionList(){
        return versionService.getVersionList();
    }
}
